﻿<UserControl x:Class="MockupDesigner.Editors.Controls.DataGridEditorControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wpfToolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
    Height="300" Width="300"
             Background="White">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <CheckBox x:Name="HeadersVisible" Content="First Line as Header" Grid.Row="0" IsChecked="True" FlowDirection="RightToLeft" HorizontalAlignment="Left" />
        <wpfToolkit:DataGrid x:Name="dataGrid" Grid.Row="1" HeadersVisibility="None" ColumnWidth="100" CanUserAddRows="False"/>
        <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,5,0,0" HorizontalAlignment="Left">
            <Button x:Name="OkBT" Content="OK" Click="OkBT_Click" IsDefault="True" />
            <Button x:Name="CancelBT" Content="Cancel" Margin="5,0,0,0" Click="CancelBT_Click" />
        </StackPanel>
    </Grid>
</UserControl>
